<?php echo $this->Html->css('style'); ?>
<div class="contentMain">
    <div class="grayBox">
        <div class="pagination">
        <?if(!empty($neighbors['next'])):?>
            <span class="right"><a href="<?=$this->webroot.'products/view/'. $neighbors['next']['Product']['id']?>">Next Product</a><span class="arrowBg yellowNext"></span></span>
        <?endif;?>
        <?if(!empty($neighbors['prev'])):?>
        <span class="left"><span class="arrowBg yellowPrev"></span><a href="<?=$this->webroot.'products/view/'. $neighbors['prev']['Product']['id']?>">Previous Product</a></span>
        <?endif;?>
        </div>
                    
        <div class="articleList">
            <ul>
                <li>
                    <div class="rightCol">
                        <?=$html->image($thumb->image('/posts/'.$Product['Product']['image'],195));?>
                        <a href="#" class="title"><?php echo $Product['Product']['name']; ?></a>
                        <div class="infoBar">
                            on <?php echo date(COMMON_DATE_FORMAT, strtotime($Product['Product']['modified']));?> | 
                            <? echo $comment_count;?> comments
                            <?if($showedit):?>
                            <a href="<?=$this->webroot.'products/edit/'. $Product['Product']['id']?>">Edit</a> | 
                            <a href="<?=$this->webroot.'products/delete/'. $Product['Product']['id']?>"  onclick="return confirm('Are you sure you want to delete product : <?php echo $Product['Product']['name'] ?>?');">Delete</a>
                            <?endif;?>
                        </div>
                        <h3>Manufacturer: <?php echo $Product['Manufacturer']['name']; ?></h3>
                        <h3>Category: <?php echo $Product['Category']['name']; ?></h3>
                        <div>
                            <?php echo Sanitize::stripTags($Product['Product']['description'],'script'); ?>
                        </div>

                        <a href="<?=$this->webroot."deals/product_deals/".$Product['Product']['id']?>" class="btnYellow01 btn"><span class="btnBg">View Deals</span></a>
                        
                        <div class="btnBar">
                            <a href="#" class="right width72">
                                <fb:like href="<?='http://'.$_SERVER['HTTP_HOST'].$this->here?>" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like>
                            </a>
                            
                            <a href="http://twitter.com/share?text=#FCBC40UP <?=$Product['Product']['name']?>" class="twitter-share-button" data-url="<?='http://'.$_SERVER['HTTP_HOST'].$this->here?>" data-count="none">Tweet</a>
                            <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
                            
                            <?
                                echo '<a target="_blank" href="http://www.facebook.com/sharer.php?u=', urlencode('http://'.$_SERVER['HTTP_HOST'].$this->here), '" share_url="http://'.$_SERVER['HTTP_HOST'].$this->here, '">
                                    <img src="', $this->webroot, 'img/btnFShare.gif" alt="Facebook Share" id="fb_share"/>
                                </a>'
                            ?>
                        </div>
                    </div>
                </li>
            </ul>                       
        </div>
                    
    </div>
    <div class="revertBox">
        <h2><?=$comment_count?> comments on "<?=$Product['Product']['name']?>"</h2>
        <?
        $url='/products/view/'.$Product['Product']['id'];
        echo $this->element('comments', array('url'=>$url)) ;
        
        ?>
    </div>
</div>
